<!DOCTYPE html>
<html lang="cn">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="">
  <meta name="author" content="">
  <title>发帖界面</title>
  <link href="css/bootstrap.min.css" rel="stylesheet">
  <link href="css/fatie.css" rel="stylesheet">

</head>

<body>
  <div id="app">
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-header navbar-right">
        <span class="navbar-brand">用户昵称：<span v-text="user.nickname"></span></span>
      </div>
    </div>
    <div class="container-fluid">
      <div class="row">
        <div class="col-xs-4"></div>
        <div class="col-xs-4">

          <div class="form-group">
            <input type="text" class="form-control" v-model="subType.subName" placeholder="标题">
          </div>

          <div class="form-group">
            <select class="form-control" v-model="subType.tid">
              <option value="-1">====请选择====</option>
              <option v-for="t in list" :value="t.tid">{{t.typeName}}</option>
            </select>
          </div>

          <div class="form-group">
            <textarea cols="30" rows="5" class="form-control" v-model="subType.subInfo"></textarea>
          </div>

          <div class="form-group">
            <button class="btn btn-lg btn-primary btn-block" @click="add();">发布</button>
          </div>
        </div>
      </div>
    </div>
  </div>

  <script src="libs/axios.min.js"></script>
  <script src="libs/vue.min.js"></script>
  <script src="libs/myutil.js"></script>
  <script src="js/fatie.js"></script>
</body>

</html>